┌────────────────────────────────┐ │ ░░░ ░░▓ ░▓▓ ███ ▓▓░ ▓░░ │ │ ~ M O O N ~ │ └────────────────────────────────┘
prd-web-01.centraldc.gr
LOCATION:
/usr/share/doc/perl-Filter/examples
☗ ROOT
↻ REFRESH
✎ EDIT FILE
EDITING: filtdef
#!/usr/bin/perl use strict ; use warnings ; my ($file, $output, $status) ; use Compress::Zlib ; die "Create a decompressor for a pl.gz\nUsage: filtdef file > filtfile\n" unless @ARGV == 1; foreach $file (@ARGV) { open (F, "<", $file) or die "Cannot open $file: $!\n" ; my $x = deflateInit() or die "Cannot create a deflation stream\n" ; print "use Filter::Decompress;\n" ; while (<F>) { ($output, $status) = $x->deflate($_) ; $status == Z_OK or die "deflation failed\n" ; print $output ; } ($output, $status) = $x->flush() ; $status == Z_OK or die "deflation failed\n" ; print $output ; close F ; }
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📁 closure/
DIR
—
2026-04-06 11:01
📁 method/
DIR
—
2026-04-06 11:01
📄 filtdef
?
726 B
2020-06-17 18:57
EDIT
📄 filtuu
?
77 B
2013-03-29 13:56
EDIT